<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/23
 * Time: 9:40
 */

Route::group(['namespace' => 'Admin','prefix' => 'admin'], function () {
    Route::any('/login',function (){
        return view('Admin/login');
    });

    Route::any('/doLogin','AdminController@login');
});


Route::group(['namespace' => 'Admin','prefix' => 'admin','middleware'=>'web'], function () {
    Route::any('index','IndexController@index');
    Route::any('/welcome',function(){
        return view('Admin/welcome');
    });
    Route::any('/logout','AdminController@logout');
    Route::any('/addAdmin','AdminController@addAdmin');
    Route::any('/updateAdmin','AdminController@updateAdmin');
    Route::any('/deleteAdmin','AdminController@deleteAdmin');
    Route::any('/getAdminList','AdminController@getAdminList');


    Route::any('/movieList','MovieController@movieList');
    Route::any('/movieAdd','MovieController@movieAdd');
    Route::any('/movieAdd2','MovieController@movieAdd2');
    Route::any('/doMovieAdd','MovieController@doMovieAdd');
    Route::any('/deleteMove','MovieController@deleteMove');
    Route::any('/deleteMove','MovieController@deleteMove');
    Route::any('/movieChange','MovieController@movieChange');
    Route::any('/doChange','MovieController@doChange');
    Route::any('/test','MovieController@testCase');




    Route::any('/TVList','MovieController@TVList');
    Route::any('/TVAdd','MovieController@TVAdd');
    Route::any('/doTVAdd','MovieController@doTVAdd');
    Route::any('/deleteTV','MovieController@deleteTV');
    Route::any('/changeTV','MovieController@changeTV');
    Route::any('/changeTVDo','MovieController@changeTVDo');


    Route::any('/shortList','MovieController@shortList');
    Route::any('/shortAdd','MovieController@shortAdd');
    Route::any('/doShortAdd','MovieController@doShortAdd');
    Route::any('/deleteShort','MovieController@deleteShort');
    Route::any('/changeShort','MovieController@changeShort');
    Route::any('/changeShortDo','MovieController@changeShortDo');

    Route::any('/adList','MovieController@adList');
    Route::any('/adAdd','MovieController@adAdd');
    Route::any('/doAdAdd','MovieController@doAdAdd');
    Route::any('/deleteAd','MovieController@deleteAd');
    Route::any('/changeAd','MovieController@changeAd');
    Route::any('/changeAdDo','MovieController@changeAdDo');

//    Route::any('/movieAdd','MovieController@movieAdd');
//    Route::any('/doMovieAdd','MovieController@doMovieAdd');
//    Route::any('/deleteMove','MovieController@deleteMove');
//    Route::any('/deleteMove','MovieController@deleteMove');
//    Route::any('/movieChange','MovieController@movieChange');
//    Route::any('/doChange','MovieController@doChange');

    Route::any('/getAdviceList','CooperationController@getAdviceList');
    Route::any('/addAdvice','CooperationController@addAdvice');
    Route::any('/updateAdvice','CooperationController@updateAdvice');
    Route::any('/deleteAdvice','CooperationController@deleteAdvice');



    Route::any('/getContactList','ContactController@getContactList');
    Route::any('/deleteContact','ContactController@deleteContact');


    Route::any('/getRecruitList','RecruitController@getRecruitList');
    Route::any('/addRecruit','RecruitController@addRecruit');
    Route::any('/getRecruitList','RecruitController@getRecruitList');
    Route::any('/updateRecruit','RecruitController@updateRecruit');
    Route::any('/deleteRecruit','RecruitController@deleteRecruit');


    Route::any('/getFocusMapList','RecruitImgController@getFocusMapList');
    Route::any('/focusMapUpload','RecruitImgController@focusMapUpload');
    Route::any('/getImage','RecruitImgController@getImage');
    Route::any('/deleteFocusMap','RecruitImgController@deleteFocusMap');


    Route::any('/getHeighLightList','HeighLightController@getHeighLightList');
    Route::any('/addHeighLight',function (){
        return view('Admin/heighlightadd');
    });
    Route::any('/doAddHeighLight','HeighLightController@addHeightLight');
    Route::any('/updateHeighLight','HeighLightController@updateHeighLight');
    Route::any('/doUpdateHeighLight','HeighLightController@doUpdateHeighLight');
    Route::any('/deleteHeighLight','HeighLightController@deleteHeighLight');


    Route::any('/aboutCompany','AboutCompanyController@aboutCompany');
    Route::any('/updateAboutCompany','AboutCompanyController@updateAboutCompany');
    Route::any('/CompanyImgUpload','AboutCompanyController@CompanyImgUpload');


    Route::any('/getHonorList','HonorController@getHonorList');
    Route::any('/addHonor','HonorController@addHonor');
    Route::any('/updateHonor','HonorController@updateHonor');
    Route::any('/deleteHonor','HonorController@deleteHonor');


    Route::any('/getTrajectoryList','TrajectoryController@getTrajectoryList');
    Route::any('/addTrajectory','TrajectoryController@addTrajectory');
    Route::any('/updateTrajectory','TrajectoryController@updateTrajectory');
    Route::any('/deleteTrajectory','TrajectoryController@deleteTrajectory');


    Route::any('/getExhibition','ExhibitionController@getExhibition');
    Route::any('/wechatImgupload','ExhibitionController@wechatImgupload');
    Route::any('/changeInfo','ExhibitionController@changeInfo');


    Route::any('/getFiled','FiledController@getFiled');
    Route::any('/updateFiled','FiledController@updateFiled');


    Route::any('/getBackgroundList', 'BackgroundController@getBackgroundList');
//    Route::any('/addBackground', 'BackgroundController@addBackground');
    Route::any('/updateBackground', 'BackgroundController@updateBackground');
//    Route::any('/deleteBackground', 'BackgroundController@deleteBackground');

    Route::any('/getJoinUs', 'JoinController@getJoinUs');
    Route::post('/updateJoinUs', 'JoinController@updateJoinUs');
});